A nonempty set Vof vectors satisfying the following conditions for u,v∈V:
u+v∈Vcu∈V0∈V
Example: The set of polynomials Pn of degree n≥0
p(t)=a0t0+a1t1+a2t2+⋯+antn
This set has the zero polynomial
p(0)∈Pnai=0
It is closed under vector addition
(p+q)(t)=p(t)+q(t)∈P
and scalar multiplication
(cp)(t)=cp(t)
Subspace
H is a subspace of V if it satisfies:
The zero vector of V is in H
H is closed under vector addition
H is closed under scalar multiplication
Example: {0}⊂V
The set consisting of only the zero vector in a vector space V is a subspace of V, called the zero subspace.
Theorem 1
If v1,…,vp are in a vector space V, then Span{v1,…,vp} is a subspace of V
Example: Let H=Span{v1,v2}
We know H is a subspace of V by Theorem 1.
Example: R2 is not a subspace of R3 because R3 is the set of 3-dimensional vectors and R2 is not even a subset of R3.
[st]⊂stu
Example: For what values of h will y=−43h be in the subspace of R3 spanned by the columns of 1−1−25−4−7−310?
This is equivalent to asking for what values of h there exists a linear combination of the vectors that equals to y, which we know is equivalent to the existence of a solution x to the linear equation Ax=y. So we just row reduce the augmented matrix [A∣b] and find that the system is consistent for h=5.
Questions
Let W be the union of the first and third quadrants in the xy-plane.W={[xy]:xy≥0}
a. Is cu in W?
Yes.
cu=[cxcy]=c2xy≥0
b. Is W a vector space?
No. It’s not closed under vector addition.
Is the following set a subspace of Pn: All polynomials of the form p(t)=a+t2, a∈R?
We know that a subspace H⊂Pn must satisfy the following conditions:
The zero vector of Pn is in H
Vector addition
Scalar multiplication
We find that the zero vector 0∈Pn is not in H if a=0.
Is the following set a subspace of Pn: All polynomials in Pn such that p(0)=0?
This is the zero vector 0∈Pn, which we know to be a subset of Pn
Let Wbe the set of all vectors of the form s+3ts−t2s−t4t. Show that W is a subspace of R4.
We can break this definition into the span of two vectors
s1120+t3−1−14
By Theorem 1, we know that the span of vectors from Vis a subspace of V
Span{v1,…,vp}⊂V
Is W=−a+1a−6b2b+a a vector space?
First, we express W as the span of vectors
W=a−111+b0−62+100
Now we check if this linear combination satisfies the three condition of vector spaces. Firstly, we find if the zero vector is in W. This is equivalent to asking if this transposed hyperplane goes through the origin such that au+bv+(1,0,0)=0. We find that the system au+bv=−(1,0,0) does not have a solution, so the zero vector is not in W, thus it is not a vector space.
Let F be a fixed 3×2 matrix, and let H be the set of all matrices A in M2×4 with the property that FA=0∈R3×4. Determine if H is a subspace of M2×4.
H is the null space of F, which makes it a subspace by Theorem 2.
4.2 Null Spaces, Column Spaces, Row Spaces, and Linear Transformations
Null Space (Kernel)
The null space of a matrix is the set of solutions x to the homogenous system Ax=0
NulA={x:Ax=0}
Theorem 2
The null space of an m×n matrix A is a subspace of Rn (dimA).
Example: Let H be the set of all vectors in R4 whose coordinates satisfy the equations a−2b+5c=d and c−a=b. Show that H is a subspace of R4.
We can actually rearrange this system of equations like so:
a−2b+5c−d=0−a−b+c=0
Which is now the set of solutions to the homogeneous system Ax=0, which we know is a subspace of n by Theorem 2.
Column Space (Range)
The column space of an m×n matrix A, ColA, is the set of all linear combinations of the columns of A, which is a subspace of Rm
ColA=Span{a1,…,an}={Ax∣x∈Rn}
Theorem 3
The column space of an m×n matrix A is a subspace of Rm. The Span of p vectors v from V is automatically a subspace of V.
Row Space
The set of all linear combinations of the row vectors is called the row space of A, RowA, which is a subspace of Rn
Questions
Find an explicit definition of NulA. A=[10−604200].
NulA is the set of solutions to the equation Ax=0. We can express this solution set in general form. First, we row reduce into RREF and get the following matrix:
A=[10−600100]
Which gives us the following general solution in terms of the free variables x2 and x4
x=x1x2x3x4=6x2x200+000x4
Thus, the null space is the span of the two vectors, and the nullity is 2.
NulA=Span6100,0001
Either show that W is a vector space, or prove the contrary.
W=⎩⎨⎧abcd:a+3b=c,b+c+a=d⎭⎬⎫
We can rearrange the two equations into a homogeneous system:
a+3b−c=0a+b+c+d=0
W is the set of all solutions to a homogeneous system, thus it is a subspace of R4 by Theorem 2.
Either show that W is a vector space, or prove the contrary.
W=⎩⎨⎧b−5d2b2d+1d:b,d∈R⎭⎬⎫
We can rewrite W as a linear combination:
W=b1200+d5021+0010
W does not include the origin, thus it is not a subspace of R4.
4.3 Bases
Theorem 4
An indexed set {v1,…,vp} of two or more vectors, with vq=0, is linearly dependent if and only if some vj is a linear combination of the preceding vectors.
Basis
A set of vectors B in V is a basis for H if the following two conditions are satisfied
B is a linearly independent set
H=SpanB
Theorem 5: The Spanning Set Theorem
Let S={v1,…,vp} be a set in a vector space V, and let H=Span{v1,…,vp}
If vk in S is a linear combination of the remaining vectors, S−vk still spans H
If H={0}, some subset of S is a basis for H
Theorem 6
The pivot columns of a matrix A form a basis for ColA.
Theorem 7
If two matrices A and B are row equivalent, then their row spaces are the same. If B is in echelon form, the nonzero rows of B form a basis for the row space of A and B.
Example: Find a basis for the row space of A
A=132541282001122538−1528
We find the basis for RowA by row-reducing to RREF. The pivot columns of A form the basis for RowA.
Questions
Is the following set a basis for R3? S=⎩⎨⎧12−3,−4−56⎭⎬⎫
We know that a set S must be linearly independent and span H to be a basis for H. A set of two vectors obviously can’t span R3.
Example: Find bases for the null space and column space for A=1−20012−56−81−214−29
First, we row reduce to RREF:
∼100010−5−4000176−3
Columns 1,2,4 are the pivot columns thus
ColA=Span⎩⎨⎧1−20,012,1−21⎭⎬⎫
And we write NulA as the general form solution to Ax=0 as a linear combination of the free variables x3,x5
True or False: If B is an echelon form of a matrix A, then the pivot columns of B form a basis for ColA.
False. The pivot columns of the reduced matrix correspond to the pivot columns in the original set which form the basis
4.4 Coordinate Systems
Theorem 8: The Unique Representation Theorem
Let B={b1,…,bn} be a basis for a vector space V. Then for each x in V, there exists a unique set of scalars c1,…,cn such that
x=c1b1+⋯+cnbn
where the coordinates of x relative to basis B
[x]B=c1⋮cn
Using these coefficients [x]B, we can express the unique point x as a linear combination of the basis vectors in B:
x=B[x]B=[b1⋯bn]c1⋮cn=c1b1+⋯+cnbn
Example: Let B={[10],[−23]} be a basis for R2, [x]B=[−23]. Find x.
The vectorxxBx[x]B
x=B[x]B=[10−23][−23]=[−89]
Example: Let B={[21],[−11]}, x=[45]. Find the coordinate vector [x]B
We can solve the equation x=B[x]B[B∣x]
Theorem 9
Let B={b1,…,bn} be a basis for a vector space V. Then the coordinate mapping x↦[x]B is a one-to-one linear transformation from V onto Rn.
Isomorphism
Two vector spaces V and W are isomorphic when ColV=ColW. For example, P3 is isomorphic to R4.
Questions
The set B={1−t2,t−t2,2−2t+t2} is a basis for P2. Find the coordinate vector of p(t)=3+t−6t2 relative to B.
Solve the system x=B[x]B for [x]B by reducing the augmented matrix [B∣x].
True or False? If B is the standard basis for Rn, then the B-coordinate vector of an x in Rn is x itself.
True. The standard basis for Rn is [e1,…,en], thus B=I.
Let p1(t)=1+t2,p2(t)=t−3t2,p3(t)=1+t−3t2.
a. Use coordinate vectors to show that these polynomials form a basis for P2
Rewriting the given polynomials as vectors in P2:
1tt2→101,01−3,11−3
We find that these 3 vectors are linearly independent and span R3, which is isomorphic to P2. Thus, the vectors form a basis of P2 by Theorem 13.
b. Consider the basis B={p1,p2,p3} for P2. Find q in P2, given that [q]B=−112
q=B[q]Bq=−1p1+1p2+2p3
4.5 The Dimension of a Vector Space
Theorem 10
If a vector space V has a basis B={b1,…,bn}, then any set in V containing more than n vectors must be linearly dependent
Theorem 11
If a vector space V has a basis of n vectors, then every basis of V must consist of exactly n vectors.
Dimension
The dimension of a vector space, dimV, is the number of vectors in a basis for V. dim{0}=0
Example: Find the dimension of the subspace H=⎩⎨⎧a−3b+6c5a+4db−2c−d5d⎭⎬⎫
First, we rewrite this set of linear equations as a linear combination of vectors
Now we row-reduce to RREF and find that the pivot columns correspond to the basis vectors which define dimV
B={v1,v2,v4}dimV=3
Theorem 12
Let H be a subspace of a finite-dimensional vector space V. Any linearly independent set in H can be expanded to a basis for H, where dimH≤dimV
Theorem 13: The Basis Theorem
Let V be a p-dimensional vector space, p≥1. Any linearly independent set of exactly p elements in V is automatically a basis for V. Any set of exactly p elements that spans V is automatically a basis for V
Rank and Nullity
The rank of an m×n matrix A is the dimension of the column space (number of pivot columns) and the nullity of A is the dimension of the null space (number of free variables).
Theorem 14: The Rank Theorem
RankA+NulA=number of columns in A
Thus, we can add the following properties to invertible matrices:
The columns of A form a basis for Rn
ColA=Rn
RankA=n
NulA={0}
Questions
Find a basis for W and state its dimension
W=⎩⎨⎧3a+6b−c6a−2b−2c−9a+5b+3c−3a+b+c⎭⎬⎫
Firstly, we can express this set of linear equations as a linear combination of vectors
W=a36−9−3+b6−251+c−1−231
Now we row-reduce these columns as one matrix:
∼10000100−1/3000
We find that there are 2 pivot columns 1 free variable. Thus the first 2 columns form the basis.
dimA=2NulA=1
Find a basis for W and state its dimension.
W={(a,b,c,d):a−3b+c=0}
W is defined as one linear equation with 4 variables. This corresponds to a homogeneous system with one row containing 1 pivot column and 3 free variables.
[1−310]
We can write the solution to this homogeneous equation in general form
x=abcd=3b−cbcd=b3100+c−1010+d0001
The dimension of a homogeneous system is equivalent to the number of free variables (nullity).
Determine the dimensions of NulA,ColA,RowA
A=10003000−41002−310−174060−30
Firstly, we reduce into RREF
∼1000300001000010671940−24−9−30
Where we have 3 pivot columns and 3 free variables. We know that the dimension of a vector space is given by the number of vectors in its basis, given by the number of pivot columns and free variables.
NulA=number of free variables=3ColA=RowA=number of pivot columns=3
True or False? The dimensions of the row space and the column space of A are the same, even if A is not square.
True. The dimension of the row and column space corresponds to the number of pivot entries, which is the same across columns and rows.
The first four Laguerre polynomials are 1,1−t,2−4t+t2,6−18t+9t2−t3. Show that these polynomials form a basis of P3.
First, we write these polynomials as vectors
1000,1−100,2−410,6−189−1
Given that P3 is isomorphic to R4, by the Basis Theorem we know that n linearly independent vectors form a basis for Rn. Thus these 4 vectors automatically form a basis because they are linearly independent.
4.6 Change of Basis
Change-of-Coordinates Matrix
A change-of-coordinates matrix PC←B is used to express the set of basis vectors in B as a linear combination of the basis vectors in C such that
CPC←B=B
Alternatively, this matrix can be used to take the coefficients [x]B which represent the vector x as a linear combination of the basis vectors in B and transform it into the coefficients [x]C.
[x]C=PC←B[x]B
Theorem 15
Let B={b1,…,bn} and C={c1,…,cn} be bases of V. Then there is a unique n×n change-of-coordinates matrix PC←B[x]B such that
[x]C=PC←B[x]B
where the change-of-coordinates matrix from B to C contains the coefficients to express each basis vector of B as a linear combination of the basis vectors in C:
PC←B=[[b1]C[b2]C…[bn]C]
Think of the column vectors [bi]C in PC←B as the coeffients that are used to express each basis vectors bi in B as a linear combination of basis vectors ci in C.
We can say that applying change-of-coordinates mapping directly to the basis vectors of C transforms it into B
This allows us to just directly solve for PC←B via row reduction:
[C∣B]∼[I∣PC←B]
Example: Let b1=[−91],b2=[−5−1],c1=[1−4],c2=[3−5]. Find the change-of-coordinates matrix PC←B
We solve the system CPC←B=B via row reduction:
[C∣B]∼[I∣PC←B]
[1−43−5−91−5−1]∼[10016−54−3]
Thus:
PC←B=[[b1]C[b2]C]=[6−54−3]
Questions
Let B={b1.b2} and C={c1.c2} be bases for a vector space V, and let b1=−c1+4c2,b2=5c1−3c2. Find the change-of-coordinates matrix PC←B. Find [x]C for x=5b1+3b2
We are given the definitions of the basis vector of B expressed using the basis vectors of C, which are the vectors [bi]C forming the change-of-coordinates matrix PC←B
We can then use this change-of-coordinates matrix to express the vector x as a linear combination of the basis vectors C instead of the basis vectors B.
[x]C=PC←B[x]B=[−145−3][53]=[1011]
This set of coefficients [x]C allows us to express x as a linear combination of the basis vectors [x]C
C[x]C=x
Let A={a1,a2,a3} and D={d1,d2,d3} be bases for V, and let P=[[d1]A[d2]A…[dn]A]. Write the expression that uses this matrix to transform a vector x in V from one basis definition to another.
Each column vector in P is the coefficient vector [di]A to express each basis vector di in D as a linear combination of the basis vectors in A such that
A[di]A=di
this is the change-of-coordinate matrix from basis D to basis A
PA←D=[[d1]A[d2]A…[dn]A]
which we can use to get the coefficients [x]D to describe a vector x as a linear combination of the basis vectors in A instead of the basis vectors in D, by applying the change-of-coordinate matrix directly to the coefficients [x]D:
[x]A=PA←D[x]D
Let D={d1,d2,d3} and F={f1,f2,f3} be bases for V. Let f1=2d1−d2+d3,f2=3d2+d3,f3=−3d1+2d3. Find PD←F. Find [x]D for x=f1−2f2+2f3.
We are given the definition of the basis vectors of F expressed using the basis vectors of D. These vectors [fi]D form the change-of-coordinates matrix PD←F
PD←F=[[f1]D[f2]D…[fn]D]
Using the given equations:
PD←F=2−11031−302
To find the coefficients [x]D for x=f1−2f2+2f3=F[x]F, we just apply the change-of-coordinates matrix
Find PC←B and PB←C, given B=[−181−5]and C=[1411]
We solve the system CPC←B=B by row-reducing [C∣B]∼[I∣PC←B].
Find the change-of-coordinates matrix from the basis B={1−3t2,2+t−5t2,1+2t} to the standard basis. Then write t2 as a linear combination of the polynomials in B.
We want to find the matrix PE→B, but the standard basis E is really just the identity matrix I so:
PE→B=B
So the change-of-coordinate matrix from B to the standard basis is just B itself.